package com.woniu.woniu_bx.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

/**
 * @author:GuoHai
 * @program: IntelliJ IDEA
 * @data: 2022/8/29 16:18
 */
public interface RolePermMapper {
    @Insert({"insert into bx_role_perm values(#{role_id},#{perm_id})"})
    void add(@Param("role_id") int roleId, @Param("perm_id") int permId);

    @Delete("delete from bx_role_perm where role_id=#{roleId}")
    void del(int roleId);
}
